package com.usian.user.feign;

import com.usian.common.dtos.ResponseResult;
import com.usian.model.user.dtos.UserInfoDto;
import com.usian.model.user.dtos.UserRelationDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("leadnews-user")
public interface UserFeign {

    @GetMapping("/api/v1/user/isUserFollow")
    public Boolean findByUserIdAndFollowId(@RequestParam(name = "userId") Integer userId,
                                           @RequestParam(name = "followId") Integer followId);


    //根据id查询用户
    @GetMapping("/api/v1/user/{id}")
    public UserInfoDto findById(@PathVariable(name = "id") Integer id);


}
